package com.woniuxy.microseckillserver.openFeign;

import com.woniuxy.microcommonserver.bean.order_caize.OrderInfo;
import feign.hystrix.FallbackFactory;
import org.springframework.stereotype.Component;

/**
 * @Author: 刘康
 * @Date: 2021/1/25 14:53
 * @Description:
 */
@Component
public class OrderFeignBackFactory implements FallbackFactory<OrderOpenFeign> {
    @Override
    public OrderOpenFeign create(Throwable cause) {

        return new OrderOpenFeign() {

            @Override
            public Long saveOrder(OrderInfo orderInfo) {
                return 0l;
            }
        };
    }
}
